/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
/* Copyright (C) 2012 Zongyou Yao. All rights reserved.     */

#include "atom.h"
#include "unittest.h"


int main(int argc, char **argv)
{
    const char *p1 = atom_string("hello");
    const char *p2 = atom_string("hello");
    const char *p3 = atom_string("world");
    const char *p4 = atom_int(100);

    ASSERT_EQ(atom_length(p1), 5);
    ASSERT_EQ(atom_length(p2), 5);
    ASSERT_EQ(atom_length(p3), 5);
    ASSERT_EQ(atom_length(p4), 3);
    ASSERT_EQ(p1, p2);

    return 0;
}
